#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <dirent.h>
#include <signal.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <fcntl.h>
#include <getopt.h>
#include <pwd.h>
#include <regex.h>
#include <ctype.h>
#include <assert.h>
#include <locale.h>

#define COMM_LEN 64


int main(int argc, char **argv)
{
    char *name;
    int sig_num;
    int optc;
    int myoptind;
    int skip_error=0;
    struct passwd *pwent = NULL;
    char yt[COMM_LEN];
    char ot[COMM_LEN];

    struct option options[] = {
        {"exact", 0, NULL, 'e'},
        {"ignore-case", 0, NULL, 'I'},
        {"process-group", 0, NULL, 'g'},
        {"younger-than", 1, NULL, 'y'},
        {"older-than", 1, NULL, 'o'},
        {"interactive", 0, NULL, 'i'},
        {"list-signals", 0, NULL, 'l'},
        {"quiet", 0, NULL, 'q'},
        {"regexp", 0, NULL, 'r'},
        {"signal", 1, NULL, 's'},
        {"user", 1, NULL, 'u'},
        {"verbose", 0, NULL, 'v'},
        {"wait", 0, NULL, 'w'},
        {"ns", 1, NULL, 'n' },
        {"context", 1, NULL, 'Z'},
        {"version", 0, NULL, 'V'},
        {0,0,0,0 }};

    setlocale(LC_ALL, "");
    bindtextdomain("psmisc", "/usr/share/locale");
    textdomain("psmisc");
    
    if ( argc < 2 ) {
        // jle 2ee7
        usage_40f0(NULL); 
    }

    char *scontext = NULL;
    regex_t scontext_reg;

    pwent = 0;
    sig_num = SIGTERM;
    
    while ( (optc = getopt_long_only(argc,argv,"egy:o:ilqrs:u:vwZ:VIn:",options,NULL)) != -1) {
        switch (optc) {

        }
    }

}
